home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c-part2 / 10646 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  1.8 KB

  1. Path: rcp6.elan.af.mil!rscernix!danpop
  2. From: danpop@mail.cern.ch (Dan Pop)
  3. Newsgroups: comp.lang.c
  4. Subject: Re: Invalid Indirection???
  5. Date: 15 Mar 96 18:53:36 GMT
  6. Organization: CERN European Lab for Particle Physics
  7. Message-ID: <danpop.826916016@rscernix>
  8. References: <4i7cck$t67@infa.central.susx.ac.uk> <4iah9k$r02@newshost.cyberramp.net>
  9. NNTP-Posting-Host: ues5.cern.ch
  10. X-Newsreader: NN version 6.5.0 #7 (NOV)
  11.  
  12. In <4iah9k$r02@newshost.cyberramp.net> sinan@cyberramp.net (John Noland) writes:
  13.  
  14. >In article <4i7cck$t67@infa.central.susx.ac.uk>, taux5@central.susx.ac.uk says...
  15. >>
  16. >> tmp = (tempi[i]*tempj[i])+(tempi[i+1]*tempj[i+1]));
  17. >>        
  18. >>/* This is where the compiler stops and says there's an invalid
  19. >>indirection for the "tmp" assignment */
  20. >
  21. >To multiply, you need whitespace. 
  22.  
  23. Is this supposed to be the joke of the week???
  24.  
  25. >Check the lexical conventions for the
  26. >evaluation of tokens for your compiler to be certain, but it looks like 
  27. >you've confused him.
  28.  
  29. If I were you, I wouldn't talk about confusion :-)
  30.  
  31. The conventions are defined by the language, not by the compiler.
  32. There is absolutely nothing implementation-defined here.
  33.  
  34. >Your statement should like this (underscores indicate spaces):
  35. >
  36. >tmp = ((tempi[i]_*_tempj[i]) + (tempi[i+1]_*_tempj[i+1]))
  37.  
  38. Can you say BULLSHIT?
  39.  
  40. Please refrain from talking about topics you obviously don't understand.
  41. Keep your confusion for you, there is no need to spread it in c.l.c.
  42.  
  43. For the "innocent" readers: those spaces don't make ANY difference.
  44. They improve the readability for the humans, but are irrelevant to the
  45. compilers, because neither ]* nor *temp are valid tokens.  Ditto for
  46. )+, +( or )+(.
  47.  
  48. BTW, the "improved" statement contains too many parentheses and too few
  49. semicolons :-)
  50.  
  51. Dan
  52. --
  53. Dan Pop
  54. CERN, CN Division
  55. Email: danpop@mail.cern.ch 
  56. Mail:  CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
  57.